#include "ipc.h"

struct ipc {
	uv_loop_t *loop;
};

struct ipc *ipc_create(uv_loop_t *loop)
{
	struct ipc *thiz = NULL;

	thiz = calloc(1, sizeof(struct ipc));
	if (!thiz) {
		printf("%s fail\n", __func__);
		goto calloc_fail;
	}

	thiz->loop = loop;

	return thiz;

calloc_fail:
	return NULL;
}

void ipc_destroy(struct ipc *thiz)
{
	if (!thiz)
		return;

	free(thiz);
}
